package se.grp03.fmtuner.scheduler.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobListener;

public class SchedulerListener implements JobListener {
	
	@Override
	public String getName() {
		return "SchedulerListener";
	}

	@Override
	public void jobExecutionVetoed(JobExecutionContext arg0) {
		System.out.println("jobToBeExecuted : " + arg0.getJobDetail().getKey().toString());
	}

	@Override
	public void jobToBeExecuted(JobExecutionContext arg0) {
		System.out.println("jobWasExecuted : " + arg0.getJobDetail().getKey().toString());
	}

	@Override
	public void jobWasExecuted(JobExecutionContext arg0, JobExecutionException arg1) {
		System.out.println("jobExecutionVetoed : " + arg0.getJobDetail().getKey().toString());
	}

}
